package com.app.implementation.dao;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.app.interfaces.interfaceDAO;
import com.app.model.Service;

public class ServiceDaoImpl extends HibernateDaoSupport implements interfaceDAO {

	public void save(Object inst) {
		Service serv = (Service)inst;
	    this.getHibernateTemplate().save(serv);
	}

	public void modify(Object inst) {
		Service serv = (Service)inst;
	       this.getHibernateTemplate().update(serv);
	}

	public void delete(Object inst) {
		 Service serv = (Service)inst;
	       this.getHibernateTemplate().delete(serv);
	}

	public List findAll() {
		return (List) this.getHibernateTemplate().loadAll(Service.class);
	}

}
